#rename "*2530*" to "*2530*"

import os

count = 0
#path = r"E:\iSww\Src\Python"
path = "."

#for root, dirs, files in os.walk(path):
#    fileCount = len(files)
#    if fileCount != 0:
#        for file in files:
#            print file
#        count = count + fileCount
#    if len(dirs) != 0:
#        for dir in dirs:
#            print dirs

for root, dirs, files in os.walk(path):
    if len(files) == 0:
        continue
    for file in files:
        if file.find("2530") != -1:
            print "Before: ", file,
            new_file = file.replace("2530", "2530")
            print "After: ", new_file
            os.rename(os.path.join(root, file), os.path.join(root, new_file))


print "\nCurrent dir: %s" %os.path.dirname(__file__)               

#print "The number of files under <%s> is : %d" %(root, count)

raw_input()
    
